//
//  RootViewController.h
//  sxwphone
//
//  Created by caijinglong on 2017/7/15.
//  Copyright © 2017年 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <React/RCTBridgeModule.h>
#import "React/RCTBridgeDelegate.h"

@class RCTViewDelegate;

@interface RootViewController : UIViewController<RCTBridgeModule,RCTBridgeDelegate>
-(void)presenterViewController:(UIViewController*) ctl;
+(RootViewController*) newViewCtlWithJsName:(NSString*)jsName moduleName:(NSString*)moduleName params:(NSDictionary*) params;

+ (RootViewController *)presentFromViewController:(UIViewController*)viewCtl jsName:(NSString*)jsName moduleName:(NSString*) moduleName params:(NSDictionary*)params;

+ (void)dismissViewController:(RootViewController*)viewCtl;

@property(nonatomic,copy)NSString* jsName;
@property (nonatomic, strong)RCTViewDelegate *delegate;
@end
